package novel.mzx.com.activity;

import android.widget.ImageView;
import android.widget.LinearLayout;

import com.bumptech.glide.Glide;
import com.just.agentweb.AgentWeb;

import java.util.ArrayList;

import butterknife.BindView;
import cn.jzvd.JZMediaManager;
import cn.jzvd.JZVideoPlayerStandard;
import novel.mzx.com.R;
import novel.mzx.com.base.BaseActivity;
import novel.mzx.com.http.Api;

/**
 * 视频播放页面
 * */

public class PhotoVideoActivity extends BaseActivity {
    @BindView(R.id.m_video)
    JZVideoPlayerStandard videoPlayer;

    @Override
    protected int getResourceId() {
        return R.layout.activity_photo_video_layout;
    }

    @Override
    protected void initView() {
        super.initView();
        String imageUrl = getIntent().getStringExtra("imageUrl");
        videoPlayer.setUp(imageUrl, JZVideoPlayerStandard.SCREEN_WINDOW_FULLSCREEN, "");
        videoPlayer.startVideo();
    }


    @Override
    protected void onDestroy() {
        super.onDestroy();
        JZMediaManager.instance().releaseMediaPlayer();
    }
}
